package com.lin.cloud.disk.entity.request;

import com.lin.cloud.disk.entity.dto.UserDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 登录实体类
 * @author ljc
 * @date 2020/12/10 17:32
 */
@Data
public class LoginRequest {

    @ApiModelProperty(value = "用户名", name = "userName",example = "root")
    @NotBlank(message = "用户名不能为空")
    private String userName;

    @ApiModelProperty(value = "密码", name = "password",example = "admin")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "公司ID", name = "companyId",example = "0")
    @NotNull(message = "公司ID不能为空")
    private Long companyId;
}
